package com.naiterui.ehp.bs.cms.modules.oms.vo;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.naiterui.ehp.bp.support.bean.annotation.Fen2Yuan;
import com.naiterui.ehp.bs.cms.common.json.Dict;

import lombok.Data;

import io.swagger.annotations.ApiModelProperty;

/**
 * <pre>
 *      退款订单详情
 * </pre>
 *
 * @author 王泽浩
 * @date 2019/9/29 11:24 上午
 * @since 1.0.0
 */
@Data
public class RefundOrderDetailVO implements java.io.Serializable {
    private static final long serialVersionUID = 8128925651415943094L;

    /**
     * 退款单ID
     */
    @ApiModelProperty(value = "退款单ID")
    private Long id;

    /**
     * 退款单号
     */
    @ApiModelProperty(value = "退款单号")
    private String refundOrderSn;

    /**
     * 支付流水号
     */
    @ApiModelProperty(value = "支付流水号")
    private String payOrderSn;

    @Fen2Yuan
    @ApiModelProperty(value = "订单金额")
    private Integer orderAmount;

    /**
     * 订单ID
     */
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    /**
     * 订单号
     */
    @ApiModelProperty(value = "订单号")
    private String orderSn;

    /**
     * 退款金额
     */
    @Fen2Yuan
    @ApiModelProperty(value = "退款金额")
    private Integer amount;

    /**
     * 退款方式
     */
    @ApiModelProperty(value = "退款方式")
    @Dict(type = "refund-method")
    private Integer method;

    /**
     * 收款账号
     */
    private String paymentAccount;

    /**
     * 审核状态 0:待审核 1:审核不通过 2:审核通过 3：已退款
     */
    @ApiModelProperty(value = "审核状态 0:待审核 1:审核不通过 2:审核通过 3：已退款")
    @Dict(type = "refund-order-status")
    private Integer status;

    /**
     * 退款原因
     */
    @ApiModelProperty(value = "退款原因")
    @Dict(type = "refund-order-reason")
    private Integer reason;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
     * 审核开始时间
     */
    @ApiModelProperty(value = "审核开始时间")
    private String auditDateGte;
    /**
     * 审核结束时间
     */
    @ApiModelProperty(value = "审核结束时间")
    private String auditDateLte;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createdAt;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    @ApiModelProperty(value = "操作日志")
    private List<RefundOrderLogVO> logs;

}
